# file = open(r"e:\aaa.txt", "r")
# txt = file.read()
# print(txt)
# file.close()

# 上述代码的对等形式
with open(r"e:\aaa.txt", "r") as file:
    txt = file.read()
    print(txt)
